package com.googlecode.dgwt.client.dojo.exception;

import com.googlecode.dgwt.client.dojo.Dojo;

/**
 * @author      Wellington Tadeu dos Santos
 * @since       DGWT v0.01
 */
public class IncompatibleTypesException extends DojoRuntimeException {

    private static final long serialVersionUID = 1L;

    
    public IncompatibleTypesException() {
        super();
    }

    public IncompatibleTypesException(String message) {
        super(message);
    }

    public IncompatibleTypesException(Object component, String message) {
        super(component, message);
    }

    public IncompatibleTypesException(Object component, Class<?> targetClass, Class<?> strictClass) {
        super(component,
              Dojo.reflect.getSimpleName(targetClass) +
              " can not be used as a " + 
              Dojo.reflect.getSimpleName(strictClass));
    }
    
}
